package com.lc.luzhengtang.glide;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.lc.luzhengtang.R;
import com.lc.luzhengtang.banner.BannerLayout;

/**
 * Created by Administrator on 2017/5/3.
 */

public class GlideImageLoader  implements BannerLayout.ImageLoader  {
    @Override
    public void displayImage(Context context, String path, ImageView imageView) {
        Glide.with(context).load(path).placeholder(R.mipmap.zhanwei).error(R.mipmap.zhanwei).centerCrop().into(imageView);
    }
}
